﻿@model BcdFileListViewModel
@{
    Layout = null;
    ViewBag.Title = "卷内目录选择归档文件列表";
}

@using (Html.BeginForm("FileVolumeAdd", "FileList", null, FormMethod.Post, new { id = "form_volume", onsubmit = "return validateCallback(this,fileVolumeAdd);", @class = "pageForm required-validate" }))
{
    <div class="pageContent" layouth="38">
        <input type="hidden" name="input_flid" value="@(ViewBag.FlId)" />
        <table class="table" width="100%" nowraptd="false" targettype="dialog" layouth="63">
            <thead>
                <tr align="center">
                    <th width="20">
                        <input type="checkbox" group="ids" class="checkboxCtrl" title="全选">
                    </th>
                    <th width="30">序号</th>
                    <th width="120">文件编号</th>
                    <th>文件材料题名</th>
                    <th width="40">总页数</th>
                </tr>
            </thead>
            <tbody>
                @{int numb = 0;}
                @foreach (var item in Model.TheBcdVolumedirectoryList)
                {
                    numb++;
                    <tr target="ids" rel="@item.Vd_ID" align="center">

                        <td>
                            <input name="ids" value="@(item.Vd_ID)" type="checkbox">
                        </td>
                        <td>
                            @(numb)
                        </td>
                        <td>@(item.Vd_Code)</td>
                        <td>@(item.Vd_Name)</td>
                        <td>@(item.Vd_PageNumb)</td>
                    </tr>
                }
            </tbody>
        </table>
    </div>
    <div class="formBar">
        <ul>
            <li>
                <button type="submit" class="btn btn-success btn-sm">
                    选择</button>
            </li>
            <li>
                <button type="button" class="close btn btn-default btn-sm">
                    取消</button>
            </li>
        </ul>
    </div>
}

